package com.css.zfzx.fwsjcj.modules.group.entity;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * 房屋-小组
 */
@Entity
@Table(name = "fw_group", schema = "fwsjcj", catalog = "")
public class FwGroupEntity {
    /***
     * 小组ID
     */
    private String id;
    /**
     *小组编号
     */
    private String groupNum;
    /***
     *小组成员ID
     */
    private String groupMember;
    /**
     * 小组组长
     */
    private String groupLeader;
    /***
     * 创建人
     */
    private String createUser;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新人
     */
    private String updateUser;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 删除标识
     */
    private String delFlag;
    /***
     * 行政区划
     */
    private String division;

    /**
     * 小组地址
     */
    private String address;
    /**
     * 小组名称
     */
    private String groupName;
    /***
     * 小组组长ID
     */
    private String groupLeaderId;
    /**
     * 行政区划名称
     */
    private String divisionName;
    /**
     * 分组类型
     */
    private String  groupType;
    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "group_num")
    public String getGroupNum() {
        return groupNum;
    }

    public void setGroupNum(String groupNum) {
        this.groupNum = groupNum;
    }

    @Basic
    @Column(name = "group_member")
    public String getGroupMember() {
        return groupMember;
    }

    public void setGroupMember(String groupMember) {
        this.groupMember = groupMember;
    }

    @Basic
    @Column(name = "group_leader")
    public String getGroupLeader() {
        return groupLeader;
    }

    public void setGroupLeader(String groupLeader) {
        this.groupLeader = groupLeader;
    }

    @Basic
    @Column(name = "create_user")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_user")
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Basic
    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "del_flag")
    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }
    @Basic
    @Column(name = "division")
    public String getDivision() {
        return division;
    }

    public void setDivision(String division) {
        this.division = division;
    }
    @Basic
    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    @Basic
    @Column(name = "group_name")
    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }
    @Basic
    @Column(name = "group_leader_id")
    public String getGroupLeaderId() {
        return groupLeaderId;
    }

    public void setGroupLeaderId(String groupLeaderId) {
        this.groupLeaderId = groupLeaderId;
    }
    @Basic
    @Column(name = "division_name")
    public String getDivisionName() {
        return divisionName;
    }

    public void setDivisionName(String divisionName) {
        this.divisionName = divisionName;
    }
    @Basic
    @Column(name = "group_type")
    public String getGroupType() {
        return groupType;
    }

    public void setGroupType(String groupType) {
        this.groupType = groupType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FwGroupEntity that = (FwGroupEntity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(groupNum, that.groupNum) &&
                Objects.equals(groupMember, that.groupMember) &&
                Objects.equals(groupLeader, that.groupLeader) &&
                Objects.equals(createUser, that.createUser) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateUser, that.updateUser) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(delFlag, that.delFlag) &&
                Objects.equals(division, that.division) &&
                Objects.equals(address, that.address) &&
                Objects.equals(groupName, that.groupName) &&
                Objects.equals(groupLeaderId, that.groupLeaderId) &&
                Objects.equals(divisionName, that.divisionName)&&
                Objects.equals(groupType, that.groupType);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, groupNum, groupMember, groupLeader, createUser, createTime, updateUser, updateTime, delFlag, division, address, groupName, groupLeaderId, divisionName,groupType);
    }
}
